package parse_and_index.model;

import java.io.Serializable;
import java.util.ArrayList;


/* This will store and retreive an entry in a posting list */
/* typically an entry in a posting list contains the document identifier */
/* and the term frequency */
public class PostingListNode implements Serializable {

	  private static final long serialVersionUID = -8841127438854753893L;
	  private final Token	   mToken;

	  public PostingListNode(final Token token) {
			mToken = token;
	  }

	  public long getDocumentID() {
			return mToken.getDocumentID();
	  }

	  public ArrayList<Page> getPages() {
			return mToken.getPages();
	  }

	  public short getTF() {
			return mToken.getTermFrequency().getTF();
	  }

	  @Override
	  public String toString() {
			return mToken.toString();
	  }
}